aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes/users/[user_name].svelte
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-24 18:09:04 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-24 18:09:04 +0200
commit14b51033fc9ca2188a0140893a56c0a249b3e118 (patch)
tree314ccc760d6d2f6f557a8342f3179fb0f9a7b46d /web/pw-server/src/routes/users/[user_name].svelte
parent90dfc3dec45b3f5d5700f711130d04a5f4d958db (diff)
downloadplanetwars.dev-14b51033fc9ca2188a0140893a56c0a249b3e118.tar.xz
planetwars.dev-14b51033fc9ca2188a0140893a56c0a249b3e118.zip
add placeholders for empty lists
Diffstat (limited to 'web/pw-server/src/routes/users/[user_name].svelte')
-rw-r--r--web/pw-server/src/routes/users/[user_name].svelte3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/pw-server/src/routes/users/[user_name].svelte b/web/pw-server/src/routes/users/[user_name].svelte
index b6bd34e..c0267b8 100644
--- a/web/pw-server/src/routes/users/[user_name].svelte
+++ b/web/pw-server/src/routes/users/[user_name].svelte
@@ -41,6 +41,9 @@
</li>
{/each}
</ul>
+ {#if bots.length == 0}
+ This user does not have any bots yet.
+ {/if}
</div>
<style lang="scss">